package shuaige.jdk.函数式接口.单个操作数并返回相同类型结果UnaryOperator;

import java.util.function.UnaryOperator;

public class UnaryOperator具体实现 {

    public static UnaryOperator<Integer> 每次叠加2 = new UnaryOperator<>() {
        @Override
        public Integer apply(Integer integer) {
            return integer + 2;
        }
    };

}
